<h1>Projects List</h1>

<table>
  <thead>
    <tr>
      <th>Id</th>
      <th>Name</th>
      <th>Route</th>
      <th>Aka</th>
      <th>Logo</th>
      <th>Image</th>
      <th>Country</th>
      <th>Location</th>
      <th>Genre</th>
      <th>Genre</th>
      <th>Status</th>
      <th>Lyrics</th>
      <th>Label</th>
      <th>Formed in</th>
      <th>Years active</th>
      <th>About</th>
      <th>Created at</th>
      <th>Updated at</th>
      <th>Created aid</th>
      <th>Updated aid</th>
      <th>Nb views</th>
      <th>Sort</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($projects as $project): ?>
    <tr>
      <td><a href="<?php echo url_for('project/edit?id='.$project->getId()) ?>"><?php echo $project->getId() ?></a></td>
      <td><?php echo $project->getName() ?></td>
      <td><?php echo $project->getRoute() ?></td>
      <td><?php echo $project->getAka() ?></td>
      <td><?php echo $project->getLogo() ?></td>
      <td><?php echo $project->getImage() ?></td>
      <td><?php echo $project->getCountryId() ?></td>
      <td><?php echo $project->getLocation() ?></td>
      <td><?php echo $project->getGenreId() ?></td>
      <td><?php echo $project->getGenre() ?></td>
      <td><?php echo $project->getStatus() ?></td>
      <td><?php echo $project->getLyrics() ?></td>
      <td><?php echo $project->getLabel() ?></td>
      <td><?php echo $project->getFormedIn() ?></td>
      <td><?php echo $project->getYearsActive() ?></td>
      <td><?php //echo $project->getAbout() ?></td>
      <td><?php echo $project->getCreatedAt() ?></td>
      <td><?php echo $project->getUpdatedAt() ?></td>
      <td><?php echo $project->getCreatedAid() ?></td>
      <td><?php echo $project->getUpdatedAid() ?></td>
      <td><?php echo $project->getNbViews() ?></td>
      <td><?php echo $project->getSort() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('project/new') ?>">New</a>
